package chapter17;

import org.junit.Test;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2018/11/28 12:32
 */
public class CollectionTest02 {
    @Test
    public void test01() {
        ToDoList toDoList = new ToDoList();
        toDoList.add("Empty trash", 'C', 4);
        toDoList.add("Feed dog", 'A', 2);
        toDoList.add("Feed bird", 'B', 7);
        toDoList.add("Mow lawn", 'C', 3);
        toDoList.add("Water lawn", 'A', 1);
        toDoList.add("Feed cat", 'B', 1);

        while (!toDoList.isEmpty()) {
            System.out.println(toDoList.remove());
        }
    }
}
